<?php
namespace app\admin\controller;

class Index extends Common
{
    public function index()
    {
        return $this->fetch();
    }

    public function welcome(){
        //取博文数
        $count_blog=db('article')->count();
        //取相册
        $count_pics=db('pics')->count();
        //取会员
        $count_user=db('user')->count();
        //取管理员
        $count_manager=db('manager')->count();
//        $this->assing();
        return view('',['blogs'=>$count_blog,'pics'=>$count_pics,'users'=>$count_user,'manager'=>$count_manager]);
    }
}
